package com.neusoft.neu24.nep.controller;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/t")
public class TestController {

    @Autowired
    private RocketMQTemplate  rocketMQTemplate;
    @RequestMapping("/p")
    public String test() {
        rocketMQTemplate.convertAndSend("bootTestTopic", "test");
        return "test";
    }
}
